﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Demo.Extensions;
using Carbon.Web.Forms.Extensions;

namespace Demo.Demos.Poll
{
    public partial class AnswerByCulture : System.Web.UI.Page
    {
        protected AnswerDataContexControl ctrl_DataContextControl = null;
        public AnswerDataContexControl Control_DataContextControl
        {
          get
          {
             if (ctrl_DataContextControl == null) throw new NullReferenceException();
            return ctrl_DataContextControl;
          }
        }
        protected void Save_Click(object sender, EventArgs args)
        {
            this.SafeExecute(() =>
            {
                Control_DataContextControl.ClosePopup(true);
            });
        }
        
    }
}